package com.lion.ball.modules.orderfood.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.lion.common.spring.business.base.BaseCrudController;
import com.lion.ball.modules.orderfood.domain.entity.OfdPackageFoodEntity;
import com.lion.ball.modules.orderfood.web.model.params.create.OfdPackageFoodCreateParam;
import com.lion.ball.modules.orderfood.web.model.params.update.OfdPackageFoodUpdateParam;
import com.lion.ball.modules.orderfood.web.model.params.search.OfdPackageFoodSearchParam;
import com.lion.ball.modules.orderfood.web.model.params.order.OfdPackageFoodOrderParam;
import com.lion.ball.modules.orderfood.web.model.results.OfdPackageFoodResult;
import com.lion.ball.modules.orderfood.dao.repository.OfdPackageFoodRepository;
import com.lion.ball.modules.orderfood.service.assistants.converters.OfdPackageFoodConverter;
import com.lion.ball.modules.orderfood.service.def.OfdPackageFoodService;
import com.lion.ball.modules.orderfood.web.api.OfdPackageFoodApi;

/**
 * @author Chris Chan
 * Create on 2025-10-18 13:33
 * Use for: 套餐与食品关联 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("ofd/package/food")
public class OfdPackageFoodController implements OfdPackageFoodApi, BaseCrudController<
        OfdPackageFoodEntity,
        OfdPackageFoodCreateParam,
        OfdPackageFoodUpdateParam,
        OfdPackageFoodSearchParam,
        OfdPackageFoodOrderParam,
        OfdPackageFoodResult,
        OfdPackageFoodRepository,
        OfdPackageFoodConverter,
        OfdPackageFoodService
        > {

    @Autowired
    OfdPackageFoodService ofdPackageFoodService;

    @Override
    public OfdPackageFoodService getService() {
        return ofdPackageFoodService;
    }
}